package com.example.designpatterns.decorator;

// 具体组件：实现了组件接口的基本功能
public class SimpleText implements TextComponent {
    private String text;

    public SimpleText(String text) {
        this.text = text;
    }
    
    @Override
    public String getContent() {
        return text;
    }

    @Override
    public void display() {
        System.out.println(getContent());
    }
}